define(['./../initial', './../model/User', './../controller/user/user.infoCtrl', './../controller/user/user.passwordCtrl', './../controller/user/user.readonlyCtrl', './../service/showMsg'], function() {
    var app = angular.module('App.home');
    app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider',
        function($stateProvider, $urlRouterProvider, $locationProvider) {
            $stateProvider
                .state('user', {
                    abstract: true,
                    url: "/user",
                    templateUrl: "/partials/user/user"
                })
                .state('user.readonly', {
                    url: "/readonly",
                    resolve: {
                        User: 'User',
                        showMsg: 'showMsg'
                    },
                    templateUrl: "/partials/user/user/readonly",
                    controller: 'user.readonlyCtrl'
                })
                .state('user.info', {
                    url: "/info",
                    resolve: {
                        User: 'User',
                        showMsg: 'showMsg'
                    },
                    templateUrl: "/partials/user/user/info",
                    controller: 'user.infoCtrl'
                })
                .state('user.password', {
                    url: "/password",
                    resolve: {
                        User: 'User',
                        showMsg: 'showMsg'
                    },
                    templateUrl: "/partials/user/user/password",
                    controller: 'user.passwordCtrl'
                });
        }
    ]);
});
